home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 30
/
PC Gamer IT CD 30 1-2.iso
/
MOTS
/
GAMEDATA
/
RESOURCE
/
JKMRES.GOO
/
cog_00_playambient.cog
< prev
next >
Wrap
Text File
|
1998-02-25
|
988b
|
48 lines
# Jedi Knight Cog Script
# 00_PlayAmbient.cog
# Plays a sound at a one or more locations
#
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
symbols
message timer
message startup
thing soundPos0 nolink
thing soundPos1 nolink
thing soundPos2 nolink
thing soundPos3 nolink
thing soundPos4 nolink
thing soundPos5 nolink
thing soundPos6 nolink
thing soundPos7 nolink
sound wav0
float minDist=-1
float maxDist=-1
float volume=1.0
int cnt local
end
code
#==================================================================================================
startup:
settimer(0.5);
return;
#==================================================================================================
timer:
for (cnt = 0; cnt <= 7; cnt = cnt+1) {
// flags indicate looping & ambient
if (soundPos0[cnt] >= 0) PlaySoundThing(wav0, soundPos0[cnt], volume, minDist, maxDist, 0x045);
}
return;
end